<?php

class Default_AdvertisementController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    	$this->_model = new Default_Model_DbTable_Advertisement();
    }

    public function indexAction()
    {
        // action body
        $id="1";
        $this->view->AdvID = $this->_model->GetById($id);
        //$this->view->Adv = $Advertisement->fetchAll()->toArray();
    }
    public function updatesttAction(){
    	$id = $this->_getParam("id",0);
    	$this->_model->UpdateStt($id);die("Udapte thành công");
    }


}

